package com.eonmind.ai.contract.api;

import com.eonmind.common.contract.constants.ServiceConstant;
import com.eonmind.common.contract.data.response.ResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * Ai 对外接口
 *
 * @restApi
 */
@FeignClient(name = ServiceConstant.EON_MIND_AI_SERVICE)
public interface AiFeignService {

    /**
     * 测试接口
     *
     * @param body
     * @return
     */
    @PostMapping("/ai-api/ai/chat/test")
    ResponseEntity<String> test(@RequestBody Map<String, String> body);
}
